<?php


namespace app\mini\controller;

// use app\BaseController as BaseController;
use app\mini\model\CustomerService as CustomerServiceModel;
use think\response\Json;


class CustomerService extends Access
{
	/**
     * 客户服务
     * @return Json
     * @author hz
     * @create 2021-10-19
     */
    public function service(): Json
    {
    	$this->param = request()->param();
        $customerServiceModel = new CustomerServiceModel();
        $this->param['customer_id'] = $this->customerId;
        $data = $customerServiceModel->getServiceList($this->param);
        return resultArray($data);
    }

    /**
     * 客户服务记录
     * @return Json
     * @author hz
     * @create 2021-10-19
     */
    public function serviceLog(): Json
    {
        $this->param = request()->param();
        $customerServiceModel = new CustomerServiceModel();
        $this->param['customer_id'] = $this->customerId;
        $data = $customerServiceModel->getServiceLogList($this->param);
        return resultArray($data);
    }
}